<?php
 class FLEA_Exception_ValidationFailed extends FLEA_Exception { var $data; var $result; function FLEA_Exception_ValidationFailed($result, $data = null) { $this->result = $result; $this->data = $data; $code = 0x0407001; $msg = sprintf(_ET($code), implode(', ', array_keys((array)$result))); parent::FLEA_Exception($msg, $code); } } 